package com.mdz.ypxspt.Entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 孟德志
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ks_exam")
public class KsExam extends Model<KsExam> {

    private static final long serialVersionUID=1L;

    @TableId(value = "exam_name", type = IdType.AUTO)
    private String examName;

    @TableField("worker_ids")
    private String workerIds;

    @TableField("paper_id")
    private Integer paperId;

    @TableField("effective_date")
    private LocalDate effectiveDate;

    @TableField("expiration_date")
    private LocalDate expirationDate;

    @TableField("description")
    private String description;


    @Override
    protected Serializable pkVal() {
        return this.examName;
    }

}
